package com.common.config;

import com.common.properties.RabbitMqProperties;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnClass(RabbitTemplate.class)
@ComponentScan(value = "com.common.rabbitmq")
public class RabbitMqConfiguration {
    @Bean
    public RabbitMqProperties rabbitMqProperties(){
        return new RabbitMqProperties();
    }

}